package com.lechi.iot.netty.channel;

import com.lechi.iot.netty.device.TcpControlCentre;
import com.lechi.iot.netty.service.MappingsImpl;

import java.util.List;
import java.util.concurrent.ConcurrentHashMap;

/**
 * 管道组
 *
 * @author yangguang
 */
public class TcpChannelGroup extends MappingsImpl<ITcpChannel> implements TcpControlCentre {

    public TcpChannelGroup() {
        super(new ConcurrentHashMap<>());
    }

    @Override
    public List<ITcpChannel> groups() {
        return list();
    }
}
